package com.limf.demo.spring;

public class CarFactory {

	public Car createHongQiCar() {
		Car car = new Car();
		car.setBrand("红旗H1");
		System.out.println("这里是非静态工厂的创建..."+ car.getBrand());
		return car;
	}
	
	public static Car createDaZhongCar() {
		Car car = new Car();
		car.setBrand("大众GoGoGo");
		System.out.println("这里是静态工厂的创建..."+car.getBrand());
		return car;
	}
}
